import request from '@/utils/request'

// 查询试卷的题目详情列表
export function listPaper_question(query) {
  return request({
    url: '/exam/paper_question/list',
    method: 'get',
    params: query
  })
}

// 查询试卷的题目详情详细
export function getPaper_question(id) {
  return request({
    url: '/exam/paper_question/' + id,
    method: 'get'
  })
}

// 新增试卷的题目详情
export function addPaper_question(data) {
  return request({
    url: '/exam/paper_question',
    method: 'post',
    data: data
  })
}

// 修改试卷的题目详情
export function updatePaper_question(data) {
  return request({
    url: '/exam/paper_question',
    method: 'put',
    data: data
  })
}

// 删除试卷的题目详情
export function delPaper_question(id) {
  return request({
    url: '/exam/paper_question/' + id,
    method: 'delete'
  })
}
